package auth

import (
	"github.com/gin-gonic/gin"
	"ruoyi/controllers/auth"
)

func Login(r *gin.RouterGroup) {
	r.POST("/login", auth.Login)
}

func Logout(r *gin.RouterGroup) {
	r.POST("/logout", auth.Logout)
}

func IndexInfo(r *gin.RouterGroup) {
	r.POST("/index", auth.IndexInfo)
}

func RegisterSubRouter(r *gin.RouterGroup) {
	authGroup := r.Group("/auth")
	Login(authGroup)
	Logout(authGroup)
	IndexInfo(authGroup)
}
